# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=kabmat
pkgver=2.7.0
pkgrel=0
pkgdesc="TUI program for managing kanban boards with vim-like keybindings"
url="https://github.com/PlankCipher/kabmat"
arch="all"
license="GPL-3.0-only"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/PlankCipher/kabmat/archive/v$pkgver.tar.gz
	makefile.patch
	"
options="!check" # No test defined upstream

build() {
	# extremely broken project that passes 'cflags' to cxx and also ignores everything by default
	make CFLAGS="-std=c++17 $CFLAGS $CXXFLAGS $LDFLAGS"
}

package() {
	make PREFIX="/usr" DESTDIR="$pkgdir" install
}

sha512sums="
22bf8fde34d705ceac71ccb54c0f9a5a10be7716b49aecea38b70de595c2350ffbe3126cc6a2c12cd651f74be51783c262c7ec0bc94810872aa470305898e76f  kabmat-2.7.0.tar.gz
9c7909c857fa9b69ae1e4399c51e9b56a3fd4ad4191ae8b9131e2c70c141aa9fc4e180736402d5392ee553f906b26dbb56cf376084361ee64d07d411f2d6d5e9  makefile.patch
"
